<template>
	<view class="top_index">
		<view class="top_input">
			<view class="search_icon">
				<image src="../../static/logo.png" mode=""></image>
			</view>
			<view class="search_input">
				<input type="text" placeholder="uni-app、vue" />
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "top-search",
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss">
	.top_index {
		background-color: #df3b4e;
		display: flex;
		height: 45px;
		width: 100%;
		border: 1px red solid;
		align-items: center;
		.top_input {
			width: 70%;
			padding:0 10px;
			background-color: white;
			border-radius: 25px;
			margin-left: 10px;
			display: flex;
			height: 30px;
			border: 1px #333 solid;
			label-align:center;
			.search_icon{
				border-radius: 5px;
				margin-top: 3px;
				display: flex;
				width: 25px;
				height: 25px;
				overflow: hidden;
				align-items: center;
				image{
					align-items: center;
					width: 100%;
					height: 100%;
				}
			}
			.search_input{
				display: flex;
				align-items: center;
				align-items: center;
				margin-left: 10px;
				input{
					align-items: center;
				}
			}
		}
	}
</style>